package cn.bj.xd.mdy.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum DateRangeEnum {
    DEFAULT(0, "默认"),
    CUSTOMIZE(18, "自定义"),
    TODAY(1, "今天"),
    YESTERDAY(2, "昨天"),
    TOMORROW(3, "明天"),
    THIS_WEEK(4, "本周"),
    LAST_WEEK(5, "上周"),
    NEXT_WEEK(6, "下周"),
    LAST_7_DAY(21, "过去7天"),
    LAST_14_DAY(22, "过去14天"),
    NEXT_7_DAY(31, "未来7天"),
    NEXT_14_DAY(32, "未来14天"),
    THIS_MONTH(7, "本月"),
    LAST_MONTH(8, "上月"),
    NEXT_MONTH(9, "下月"),
    LAST_30_DAY(23, "过去30天"),
    NEXT_33_DAY(33, "未来33天"),
    THIS_QUARTER(12, "本季度"),
    LAST_QUARTER(13, "上季度"),
    NEXT_QUARTER(14, "下季度"),
    THIS_YEAR(15, "本年"),
    LAST_YEAR(16, "去年"),
    NEXT_YEAR(17, "明年"),
    LAST_ENUM(10, "上.."),
    NEXT_ENUM(11, "下.."),
    ;

    @JsonValue
    private final Integer value;
    private final String desc;

    DateRangeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
